package apibasej.basic.thread;

import apibasej.basic.pool.APIBasePoolException;
import apibasej.basic.pool.SimplePool;

// T será o tipo de de retorno dos Callables ...
public class SimpleThreadPool extends SimplePool<PooledThread> {

	public SimpleThreadPool(int initialSize, int recommendedSize, int maxSize) {
		super(initialSize, recommendedSize, maxSize);
	}

	@Override
	public PooledThread newItemPool() throws APIBasePoolException {
		//PooledThread t = new PooledThread(this);
		//System.out.println("THREAD CRIADA: "+t);
		return new PooledThread(this);
	}

}
